﻿namespace Devonline.Entity;

/// <summary>
/// 身份证
/// </summary>
[DisplayName("身份证")]
public class IdCardViewModel : ViewModel
{
    /// <summary>
    /// 姓名
    /// </summary>
    [DisplayName("姓名"), Required, MaxLength(256), Excel]
    public string? Name { get; set; }
    /// <summary>
    /// 性别 Gender 枚举值
    /// </summary>
    [DisplayName("性别"), MaxLength(16), Excel]
    public string? Gender { get; set; }
    /// <summary>
    /// 名族
    /// </summary>
    [DisplayName("民族"), MaxLength(16), Excel]
    public string? Nation { get; set; }
    /// <summary>
    /// 出身日期
    /// </summary>
    [DisplayName("出生"), Excel]
    public DateTime Birthday { get; set; }
    /// <summary>
    /// 住址
    /// </summary>
    [DisplayName("住址"), MaxLength(256), Excel]
    public string? Address { get; set; }
    /// <summary>
    /// 身份证号码
    /// </summary>
    [DisplayName("公民身份号码"), MaxLength(256), Excel]
    public string? IdCode { get; set; }
    /// <summary>
    /// 签发机关
    /// </summary>
    [DisplayName("签发机关"), MaxLength(36), Excel]
    public string? IssuedBy { get; set; }
    /// <summary>
    /// 有效期始
    /// </summary>
    [DisplayName("有效期始"), Excel]
    public DateTime StartDate { get; set; }
    /// <summary>
    /// 有效期至
    /// </summary>
    [DisplayName("有效期至"), Excel]
    public DateTime EndDate { get; set; }
    /// <summary>
    /// 身份证头像照片
    /// </summary>
    [DisplayName("头像照片"), MaxLength(128), Excel]
    public string? HeadImage { get; set; }
    /// <summary>
    /// 身份证正面照片
    /// </summary>
    [DisplayName("身份证正面照片"), MaxLength(128), Excel]
    public string? FrontImage { get; set; }
    /// <summary>
    /// 身份证反面照片
    /// </summary>
    [DisplayName("身份证反面照片"), MaxLength(128), Excel]
    public string? BackImage { get; set; }
}
